package com.streamkar.entity.es;

/**
 * Contains the result of an aggregation.
 */
public class AggWrapper {

    /**
     * Type of an aggregation (to know if there are buckets or not)
     */
    public enum AggregationType {
        SIMPLE, MULTI_BUCKETS
    }

    private final AggregationType type;
    private final String result;

    public AggWrapper(AggregationType type, String result) {
        this.type = type;
        this.result = result;
    }

    public AggregationType getType() {
        return type;
    }

    public String getResult() {
        return result;
    }
}
